.class public Lcom/burstly/lib/currency/UserCurrencyAccount;
.super Ljava/lang/Object;
.source "UserCurrencyAccount.java"

# interfaces
.implements Ljava/io/Serializable;


# static fields
.field private static final serialVersionUID:J = 0x5efda7afcf31156aL


# instance fields
.field private final mCurrency:Ljava/lang/String;

.field private mOldTotalCurrencyAmount:I

.field private mTotalCurrencyAmount:I

.field private mTotalIncomeAmount:I

.field private mTotalOutcomeAmount:I


# direct methods
.method public constructor <init>(Ljava/lang/String;)V
    .locals 0
    .parameter "currency"

    .prologue
    .line 62
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 63
    iput-object p1, p0, Lcom/burstly/lib/currency/UserCurrencyAccount;->mCurrency:Ljava/lang/String;

    .line 64
    return-void
.end method


# virtual methods
.method public getActualBalance()I
    .locals 2

    .prologue
    .line 106
    iget v0, p0, Lcom/burstly/lib/currency/UserCurrencyAccount;->mTotalCurrencyAmount:I

    iget v1, p0, Lcom/burstly/lib/currency/UserCurrencyAccount;->mTotalIncomeAmount:I

    add-int/2addr v0, v1

    iget v1, p0, Lcom/burstly/lib/currency/UserCurrencyAccount;->mTotalOutcomeAmount:I

    sub-int/2addr v0, v1

    return v0
.end method

.method public getCurrency()Ljava/lang/String;
    .locals 1

    .prologue
    .line 96
    iget-object v0, p0, Lcom/burstly/lib/currency/UserCurrencyAccount;->mCurrency:Ljava/lang/String;

    return-object v0
.end method

.method public getOldTotalCurrencyAmount()I
    .locals 1

    .prologue
    .line 110
    iget v0, p0, Lcom/burstly/lib/currency/UserCurrencyAccount;->mOldTotalCurrencyAmount:I

    return v0
.end method

.method public getTotalCurrencyAmount()I
    .locals 1

    .prologue
    .line 67
    iget v0, p0, Lcom/burstly/lib/currency/UserCurrencyAccount;->mTotalCurrencyAmount:I

    return v0
.end method

.method public getTotalIncomeAmount()I
    .locals 1

    .prologue
    .line 75
    iget v0, p0, Lcom/burstly/lib/currency/UserCurrencyAccount;->mTotalIncomeAmount:I

    return v0
.end method

.method public getTotalOutcomeAmount()I
    .locals 1

    .prologue
    .line 83
    iget v0, p0, Lcom/burstly/lib/currency/UserCurrencyAccount;->mTotalOutcomeAmount:I

    return v0
.end method

.method public setOldTotalCurrencyAmount(I)V
    .locals 0
    .parameter "oldTotalCurrencyAmount"

    .prologue
    .line 114
    iput p1, p0, Lcom/burstly/lib/currency/UserCurrencyAccount;->mOldTotalCurrencyAmount:I

    .line 115
    return-void
.end method

.method public setTotalCurrencyAmount(I)V
    .locals 0
    .parameter "totalCurrencyAmount"

    .prologue
    .line 71
    iput p1, p0, Lcom/burstly/lib/currency/UserCurrencyAccount;->mTotalCurrencyAmount:I

    .line 72
    return-void
.end method

.method public setTotalIncomeAmount(I)V
    .locals 0
    .parameter "totalIncomeAmount"

    .prologue
    .line 79
    iput p1, p0, Lcom/burstly/lib/currency/UserCurrencyAccount;->mTotalIncomeAmount:I

    .line 80
    return-void
.end method

.method public setTotalOutcomeAmount(I)V
    .locals 0
    .parameter "totalOutcomeAmount"

    .prologue
    .line 87
    iput p1, p0, Lcom/burstly/lib/currency/UserCurrencyAccount;->mTotalOutcomeAmount:I

    .line 88
    return-void
.end method

.method public toString()Ljava/lang/String;
    .locals 2

    .prologue
    .line 119
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "UserCurrencyAccount [mCurrency="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/burstly/lib/currency/UserCurrencyAccount;->mCurrency:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", mOldTotalCurrencyAmount="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget v1, p0, Lcom/burstly/lib/currency/UserCurrencyAccount;->mOldTotalCurrencyAmount:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", mTotalCurrencyAmount="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget v1, p0, Lcom/burstly/lib/currency/UserCurrencyAccount;->mTotalCurrencyAmount:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", mTotalIncomeAmount="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget v1, p0, Lcom/burstly/lib/currency/UserCurrencyAccount;->mTotalIncomeAmount:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", mTotalOutcomeAmount="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget v1, p0, Lcom/burstly/lib/currency/UserCurrencyAccount;->mTotalOutcomeAmount:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "]"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
